package com.zt.ztyh.model.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 *
 * @TableName ztyh_loan_user
 */
@TableName(value ="ztyh_loan_user")
@Data
public class LoanUser implements Serializable {
    /**
     *
     */
    @TableId(value = "id")
    private Long id;

    /**
     * 贷款产品外键
     */
    @TableField(value = "lid")
    private Long lid;

    /**
     * 用户外键
     */
    @TableField(value = "uid")
    private Long uid;

    /**
     * 贷款金额
     */
    @TableField(value = "amount")
    private BigDecimal amount;

    /**
     * 实际还款日期
     */
    @TableField(value = "backDate")
    private Date backdate;

    /**
     * 借贷日期
     */
    @TableField(value = "create_time")
    private Date createTime;

    /**
     * 0:已还 1:贷中 2：预期
     */
    @TableField(value = "state")
    private Integer state;

    /**
     * 实际还款金额
     */
    @TableField(value = "redundancy1")
    private BigDecimal redundancy1;

    /**
     * 逾期金额
     */
    @TableField(value = "redundancy2")
    private BigDecimal redundancy2;

    /**
     * 规定还款日期
     */
    @TableField(value = "requiredate")
    private Date requiredate;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}
